//
//  RadioPlay.h
//  news
//
//  Created by lanou on 15/12/18.
//  Copyright © 2015年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import "PlayRadioTableViewController.h"

@class RadioListModel;
@class PlayRadioModel;
@class SingleRadioListModel;

@protocol RadioPlayDelegate <NSObject>
- (void)audioManagerRadioProgress:(float)grogress;
@end

@interface RadioPlay : NSObject

@property (nonatomic, assign)id<RadioPlayDelegate> radioPlayerDelegate;


+ (RadioPlay *)sharedRadioPlay;

@property (nonatomic, retain)AVPlayer *player;
@property (nonatomic, retain)AVPlayerItem *playerItem;

@property (nonatomic, retain)RadioListModel *radioListModel;
@property (nonatomic, retain)PlayRadioModel *playRadioModel;
@property (nonatomic, retain)SingleRadioListModel *singleRadioListModel;
@property (nonatomic, strong)NSArray *radioListArray;
@property (nonatomic, assign)NSInteger item;


// 准备播放
@property (nonatomic, assign)BOOL readyToPlay;


//- (void)loadRadioInfo;
- (void)loadRadioInfo1;
- (void)startPlaySong;
- (void)stopPlaySong;
- (void)nextRadio;
- (void)prevRadio;
- (void)seekToTime:(CGFloat)time;


@property (nonatomic, retain)PlayRadioTableViewController *playRadioTVC;

@end
